package cn.edu.dgut.sai.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author Sai
 * Created by Sai on 2019/9/6.
 */
//@Configuration
public class DataSourceConfig {

    @Bean
    @Sai
    @Conditional(ConditionSai.class)//限定@Bean的有效性
    public DataSource dataSource() {
        return new DataSource();
    }
}
